package com.gp.node;

import com.stock.StockData;

public class LowPrice extends IValue {

	/**
	 * 
	 */
	private static final long serialVersionUID = 2260967527609134373L;

	@Override
	public double getValue(StockData stock) {
		return stock.getLowPrice();
	}
	
	@Override
	public INode createNew()  {
		return new LowPrice();
	}

	@Override
	public INode copy() {
		return new LowPrice();
	}
	
	@Override
	public String print(StockData stock) {
		return String.valueOf(stock.getLowPrice());
	}
	
	@Override
	public String print() {
		return " LowPrice ";
	}


}
